<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>复杂图片展示</title>
    <style>
      .grid-container {
        width: 900px;
        height: 620px;
        display: grid;
        /* 创建3行，每行高 200px */
        grid-template-rows: repeat(3, 200px);
        /* 创建3列，第1，3列宽为200px，第2列宽自动 */
        grid-template-columns: 200px auto 200px;
        /* 项目排列顺序-先列后行排列 */
        grid-auto-flow: column;
        /* 行列间距都为10px */
        gap: 10px;
      }

      .grid-container .grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .center {
        grid-area: 1/2 / span 3 / 3;
      }
    </style>
  </head>
  <body>
    <div class="grid-container">
      <div class="grid-item">
        <img src="https://picsum.photos/200?random=1" alt="image" />
      </div>
      <div class="grid-item">
        <img src="https://picsum.photos/200?random=2" alt="image" />
      </div>
      <div class="grid-item">
        <img src="https://picsum.photos/200?random=3" alt="image" />
      </div>
      <div class="grid-item center">
        <img src="https://picsum.photos/600/600?random=4" alt="image" />
      </div>
      <div class="grid-item">
        <img src="https://picsum.photos/200?random=5" alt="image" />
      </div>
      <div class="grid-item">
        <img src="https://picsum.photos/200?random=6" alt="image" />
      </div>
      <div class="grid-item">
        <img src="https://picsum.photos/200?random=7" alt="image" />
      </div>
    </div>
  </body>
</html>
